<template>
	<view class="p30">
		<view class="solid-bottom pb30" :class="{'mt30': index> 0}" v-for="(item,index) in list" :key="index">
			<view class="fs30 fw700">{{item.uid_send}}</view>
			<view class="color8 fs24 fw500 mt20">{{item.content}}</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onShow() {
			this.getData()
		},
		methods: {
			getData () {
				this.$api.messageList({page: this.page, size: 10}).then(res => {
					this.list.push( ...res.data )
				})
			}
		}
	}
</script>
<style lang="scss">
</style>
